class CreateEvents < ActiveRecord::Migration
  def self.up
    create_table :events do |t|
      t.column :title,         :string
      t.column :nicetitle,     :string
      t.column :description,   :text
      t.column :created_at,    :datetime
      t.column :updated_at,    :datetime
      t.column :starts_at,     :datetime
      t.column :ends_at,       :datetime
      
      t.column :place_id,      :integer
      t.column :user_id,       :integer
    end
  end

  def self.down
    drop_table :events
  end
end
